﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.Objects.DataClasses;

namespace ImobitechDao.Repositories
{
    public interface IBaseRepository<T> where T : EntityObject, IEntityWithId
    {
        T GetById(int id);
        List<T> GetAll();
        List<T> GetAll(string ColumnOrder);
        Object Create(T entity);
        Object Update(T entity);
        Object Delete(int id);
    }
}